import { services } from '@/config'

export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  searchMenuSpan: 6,
  labelWidth: 100,
  searchShow: false,
  menuWidth: 300,
  viewBtn: true,
  column: [
    {
      type: 'input',
      label: '编号',
      prop: 'number',
      width: 140,
      span: 12,
      search: true,
      display: false
    },
    {
      type: 'input',
      label: '监督人',
      prop: 'supervisionPerson',
      span: 12,
      width: 100,
      overHidden: true,
      formslot: true,
      search: true,
      required: true,
      rules: [
        {
          required: true,
          message: '请选择监督人'
        }
      ]
    },
    {
      type: 'date',
      label: '招标时间',
      prop: 'tenderTime',
      span: 12,
      width: 120,
      display: true,
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      search: true,
      required: true,
      searchRange: true,
      rules: [
        {
          required: true,
          message: '选择招标时间'
        }
      ]
    },
    {
      type: 'input',
      label: '招标地点',
      prop: 'tenderPlace',
      span: 24,
      width: 100,
      overHidden: true,
      search: true,
      required: true,
      rules: [
        {
          required: true,
          message: '请填写招标地点'
        }
      ]
    },
    {
      type: 'input',
      label: '项目名称',
      prop: 'projectName',
      span: 24,
      width: 120,
      overHidden: true,
      search: true,
      required: true,
      rules: [
        {
          required: true,
          message: '请填写项目名称'
        }
      ]
    },
    {
      type: 'input',
      label: '评标专家',
      prop: 'participants',
      span: 24,
      width: 200,
      overHidden: true,
      search: true,
      required: true,
      rules: [
        {
          required: true,
          message: '请输入评标专家'
        }
      ]
    },
    {
      type: 'input',
      label: '参与者ID',
      prop: 'participantsId',
      span: 24,
      display: false,
      hide: true
    },
    {
      type: 'input',
      label: '项目负责人',
      prop: 'projectLeader',
      span: 12,
      width: 100,
      overHidden: true,
      formslot: true,
      search: true,
      required: true,
      rules: [
        {
          required: true,
          message: '请选项目负责人'
        }
      ]
    },
    {
      type: 'input',
      label: '经办人',
      prop: 'agent',
      span: 12,
      width: 100,
      overHidden: true,
      formslot: true,
      search: true
    },
    {
      type: 'input',
      label: '项目单位',
      prop: 'projectUnit',
      span: 24,
      width: 100,
      overHidden: true,
      formslot: true,
      search: true,
      required: true,
      rules: [
        {
          required: true,
          message: '请项目单位'
        }
      ]
    },
    {
      type: 'select',
      label: '招标方式',
      prop: 'tenderMethod',
      span: 12,
      dicUrl: `${services.adminService}dict/type/tender_method`,
      display: true,
      cascaderItem: [],
      overHidden: true,
      search: true,
      required: true,
      rules: [
        {
          required: true,
          message: '请选择招标方式'
        }
      ]
    },
    {
      type: 'select',
      label: '评标原则',
      prop: 'evaluationPrinciple',
      span: 12,
      dicUrl: `${services.adminService}dict/type/evaluation_principle`,
      cascaderItem: [],
      display: true,
      props: {
        label: 'label',
        value: 'value'
      },
      width: 100,
      search: true,
      required: true,
      rules: [
        {
          required: true,
          message: '请选择评价原则'
        }
      ]
    },
    {
      type: 'textarea',
      label: '开标情况',
      prop: 'tenderSituation',
      span: 24,
      display: true,
      width: 200,
      overHidden: true,
      search: true,
      required: true,
      rules: [
        {
          required: true,
          message: '请填写开标情况'
        }
      ]
    },
    {
      type: 'textarea',
      label: '评标结果',
      prop: 'evaluationResults',
      span: 24,
      display: true,
      width: 250,
      overHidden: true,
      required: true,
      rules: [
        {
          required: true,
          message: '请填写评标结果'
        }
      ]
    },
    {
      type: 'textarea',
      label: '备注',
      prop: 'remarks',
      span: 24,
      display: true,
      width: 250,
      overHidden: true
    },
    {
      label: '附件信息',
      prop: 'uploadPage',
      type: 'input',
      formslot: true,
      slot: true,
      span: 24,
      hide: true
    }
  ]
}
